﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="MessageBoard.aspx.cs" Inherits="MessageBoard" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style>
.Gtitle
{
background: blanchedalmond;
width: inherit;
color:#000000;
font-size:14px;
height:20px;
padding: 3px 0 0 10px;
font-weight:bold;
border-style:solid;
border-top-width:1px;
border-bottom-width:0px;
border-left-width:1px;
border-right-width:1px;
border-color:#BBBBBB;
}
.Gbody
{
    background: blanchedalmond;
        border-left: 1px solid #BBBBBB;
            border-right: 1px solid #BBBBBB;
            border-top: 0px solid #BBBBBB;
            border-bottom: 0px solid #BBBBBB;
            width:inherit;
            padding:3px 5px 3px 5px;
}
.Gend
{
background: blanchedalmond;
width: inherit;
border-style:solid;
border-top-width:0px;
border-bottom-width:1px;
border-left-width:1px;
border-right-width:1px;
border-color:#BBBBBB;
padding:3px 5px 3px 5px;
}
.Gname
{
background: blanchedalmond;
width:inherit;
 font-size:12px;
 color:darkcyan;
}
.Gcontent
{
width:inherit;
word-break:break-all;
color:darkcyan;
font-size:12px;
padding: 3px 0 3px 0;
border-style:dotted;
border-top-width:0px;
border-bottom-width:1px;
border-left-width:0px;
border-right-width:0px;
border-color:#BBBBBB;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        <div>
            <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>

            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <div class="Gtitle">
                        <asp:Label ID="Label1" runat="server" Text="公共论坛" Font-Names="微软雅黑" Font-Size="X-Small" ></asp:Label>
                    </div>

                    <div class="Gbody">
                        <asp:DataList ID="DataList1" runat="server" Font-Names="微软雅黑" Font-Size="Medium" Height="16px" Width="1024px" BackColor="LightGoldenrodYellow"
                        BorderColor="Tan" BorderWidth="1px" CellPadding="2" ForeColor="Black" >                            
                            <FooterStyle BackColor="Tan" />
                            <HeaderStyle BackColor="Tan" Font-Bold="True" />
                            <SelectedItemStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                            <ItemTemplate>
                                <div class="Gname">
                                <img src="img/flag/flag-9.png" height="20" width="20" />                                   
                                    <%# DataBinder.Eval(Container.DataItem,"name") %>@<%# DataBinder.Eval(Container.DataItem,"team") %>&nbsp;&nbsp; 说:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <asp:LinkButton ID="bt_delmessage" runat="server" Text="删除留言" OnClick="Bt_delmessage_Click" 
                                        Font-Names="微软雅黑" Font-Size="X-Small" style="background: blanchedalmond;" CommandArgument=<%# DataBinder.Eval(Container.DataItem,"id") %>  />                               
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <%# DataBinder.Eval(Container.DataItem,"posttime")%>

                                </div>

                                <div class="Gcontent">
                                    <%# DataBinder.Eval(Container.DataItem,"message") %>
                                </div>
                            </ItemTemplate>
                        </asp:DataList>
                       
                    </div>

                    <div class="Gend">
                        <asp:TextBox ID="tb_liuyan" runat="server" Width="1116px" Font-Names="微软雅黑" Font-Size="Medium" style="background: blanchedalmond;" /><br />
                        <asp:Button ID="bt_liuyan" runat="server" Text="留言" OnClick="Bt_message_Click" style="background: blanchedalmond;" />
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
</asp:Content>

